<html>
<script>
  (function() {
    document.write('<d' + 'iv>Hello world' + '</di' + 'v>');
  })();
</script>
<body>
  This page uses document.write to write a div.
</body>
